﻿<phone:PhoneApplicationPage 
    x:Class="PNut_Project_Lin.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800" 
    d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
    
    >


    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--Pivot Control-->
        <controls:Panorama >
            <controls:Panorama.TitleTemplate>
                <DataTemplate>
                    <TextBlock Text="Car Emergency Assistant System" FontSize="60" Margin="0,70,0,0" />
                </DataTemplate>
            </controls:Panorama.TitleTemplate>
            <controls:Panorama.Background>
                <ImageBrush Opacity="0.6" ImageSource="picture/Roadmap.jpg"/>
            </controls:Panorama.Background>
            <!--Pivot item one-->
            <controls:PanoramaItem Header="Main">
                <ScrollViewer>
                    <StackPanel>
                        <Button x:Name="CheckCarBt" Height="122" BorderThickness="0" HorizontalAlignment="Left" Click="CheckCarBt_Click" >
                            <StackPanel Orientation="Horizontal" >
                                <Image Height="80" Source="picture/graphite_public.png" Stretch="Fill" Width="80" HorizontalAlignment="Left"/>
                                <TextBlock TextWrapping="Wrap" Text="คู่มือเช็ครถก่อนเดินทาง" FontSize="44" FontFamily="/PNut_Project_Lin;component/Fonts/Fonts.zip#TH Sarabun New" Margin="10,10,0,0"/>
                            </StackPanel>
                        </Button>
                        <Button x:Name="RepairBt" Height="122" BorderThickness="0" HorizontalAlignment="Left" Click="RepairBt_Click">
                            <StackPanel Orientation="Horizontal" >
                                <Image Height="80" Source="picture/graphite_utilities.png" Stretch="Fill" Width="80" HorizontalAlignment="Left"/>
                                <TextBlock TextWrapping="Wrap" Text="คู่มือซ่อมรถเบื้องต้น" FontSize="44" FontFamily="/PNut_Project_Lin;component/Fonts/Fonts.zip#TH Sarabun New" Margin="10,10,0,0"/>
                            </StackPanel>
                        </Button>
                        <Button x:Name="MapBt" Height="122" BorderThickness="0" HorizontalAlignment="Left" Click="MapBt_Click">
                            <StackPanel Orientation="Horizontal" >
                                <Image Height="80" Source="picture/map_app.png" Stretch="Fill" Width="80"/>
                                <TextBlock TextWrapping="Wrap" Text="ค้นหาอู่ซ่อมรถ" FontSize="44" FontFamily="/PNut_Project_Lin;component/Fonts/Fonts.zip#TH Sarabun New" Margin="10,10,0,0"/>
                            </StackPanel>
                        </Button>
                        <Button x:Name="insurance_Bt" Height="122" BorderThickness="0" HorizontalAlignment="Left" Click="insurance_Bt_Click">
                            <StackPanel Orientation="Horizontal" >
                                <Image Height="80" Source="picture/gnome_control_center.png" Stretch="Fill" Width="80"/>
                                <TextBlock TextWrapping="Wrap" Text="ค้นหาอู่ประกันภัยรถยนต์" FontSize="44" FontFamily="/PNut_Project_Lin;component/Fonts/Fonts.zip#TH Sarabun New" Margin="10,10,0,0"/>
                            </StackPanel>
                        </Button>
                        <Button x:Name="service_bt" Height="122" BorderThickness="0" HorizontalAlignment="Left" Click="service_bt_Click">
                            <StackPanel Orientation="Horizontal">
                                <Image Height="80" Source="picture/Car-Repair-Blue-icon.png" Stretch="Fill" Width="80" HorizontalAlignment="Left"/>
                                <TextBlock TextWrapping="Wrap" Text="ศูนย์บริการรถยนต์" FontSize="44" FontFamily="/PNut_Project_Lin;component/Fonts/Fonts.zip#TH Sarabun New" Margin="10,10,0,0"/>
                            </StackPanel>
                        </Button>
                    </StackPanel>
                </ScrollViewer>
            </controls:PanoramaItem>
            <!--Pivot item two-->
            <controls:PanoramaItem Header="About">
                <StackPanel Orientation="Vertical">
                    <StackPanel HorizontalAlignment="Center">
                        <TextBlock TextAlignment="Center" FontSize="25" Text="Car Emergency Assistant System" />
                        <TextBlock TextAlignment="Center" FontSize="25" Text=" V 1.1" />
                    </StackPanel>
                    <TextBlock TextAlignment="Center" FontSize="20" Margin="0,0,0,50" Text="P Nut Project" />
                </StackPanel>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>

</phone:PhoneApplicationPage>